package com.youkeyi.ddy.cloud.common.api.application.system.login;

import com.youkeyi.ddy.cloud.common.api.application.system.login.dto.AppletLoginAuthCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.login.param.AppletLoginAuthCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import com.youkeyi.ddy.cloud.common.response.ResponseObjectContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * SystemAppletLoginFeignServiceFallback
 *
 * @Author liuxiawang
 * @Date 2023-02-16 11:37
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/applet/login/fallback")
public class SystemAppletLoginFeignServiceFallback implements SystemAppletLoginFeignService {

    @Override
    public AppletLoginAuthCloudDto getWxInfo(String code) {
        return new AppletLoginAuthCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseObjectContent getToken(AppletLoginAuthCloudParam param) {
        return new ResponseObjectContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent logout(HttpServletRequest request, HttpServletResponse response) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
